package com.innoking.docsys.doc.dto;

import java.io.Serializable;
import java.util.Date;

public class UpmsArchivesTypes implements Serializable {
    private Integer archivesId;

    private String sortNum;

    private String sortName;

    private Integer parentId;

    private String lowerWidth;

    private String isroot;

    private Integer fondsId;

    private Date ctime;

    private Date mtime;

    private String str1;

    private String str2;

    private String str3;

    private String str4;

    private String str5;

    public Integer getArchivesId() {
        return archivesId;
    }

    public void setArchivesId(Integer archivesId) {
        this.archivesId = archivesId;
    }

    public String getSortNum() {
        return sortNum;
    }

    public void setSortNum(String sortNum) {
        this.sortNum = sortNum == null ? null : sortNum.trim();
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName == null ? null : sortName.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getLowerWidth() {
        return lowerWidth;
    }

    public void setLowerWidth(String lowerWidth) {
        this.lowerWidth = lowerWidth == null ? null : lowerWidth.trim();
    }

    public String getIsroot() {
        return isroot;
    }

    public void setIsroot(String isroot) {
        this.isroot = isroot == null ? null : isroot.trim();
    }

    public Integer getFondsId() {
        return fondsId;
    }

    public void setFondsId(Integer fondsId) {
        this.fondsId = fondsId;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getMtime() {
        return mtime;
    }

    public void setMtime(Date mtime) {
        this.mtime = mtime;
    }

    public String getStr1() {
        return str1;
    }

    public void setStr1(String str1) {
        this.str1 = str1 == null ? null : str1.trim();
    }

    public String getStr2() {
        return str2;
    }

    public void setStr2(String str2) {
        this.str2 = str2 == null ? null : str2.trim();
    }

    public String getStr3() {
        return str3;
    }

    public void setStr3(String str3) {
        this.str3 = str3 == null ? null : str3.trim();
    }

    public String getStr4() {
        return str4;
    }

    public void setStr4(String str4) {
        this.str4 = str4 == null ? null : str4.trim();
    }

    public String getStr5() {
        return str5;
    }

    public void setStr5(String str5) {
        this.str5 = str5 == null ? null : str5.trim();
    }

    @Override
    public String toString() {
        return "UpmsArchivesTypes{" +
                "archivesId=" + archivesId +
                ", sortNum='" + sortNum + '\'' +
                ", sortName='" + sortName + '\'' +
                ", parentId=" + parentId +
                ", lowerWidth='" + lowerWidth + '\'' +
                ", isroot='" + isroot + '\'' +
                ", fondsId=" + fondsId +
                ", ctime=" + ctime +
                ", mtime=" + mtime +
                ", str1='" + str1 + '\'' +
                ", str2='" + str2 + '\'' +
                ", str3='" + str3 + '\'' +
                ", str4='" + str4 + '\'' +
                ", str5='" + str5 + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof UpmsArchivesTypes)) {
            return false;
        }

        UpmsArchivesTypes that = (UpmsArchivesTypes) o;

        if (archivesId != null ? !archivesId.equals(that.archivesId) : that.archivesId != null) {
            return false;
        }
        if (sortNum != null ? !sortNum.equals(that.sortNum) : that.sortNum != null) {
            return false;
        }
        if (sortName != null ? !sortName.equals(that.sortName) : that.sortName != null) {
            return false;
        }
        if (parentId != null ? !parentId.equals(that.parentId) : that.parentId != null) {
            return false;
        }
        if (lowerWidth != null ? !lowerWidth.equals(that.lowerWidth) : that.lowerWidth != null) {
            return false;
        }
        if (isroot != null ? !isroot.equals(that.isroot) : that.isroot != null) {
            return false;
        }
        if (fondsId != null ? !fondsId.equals(that.fondsId) : that.fondsId != null) {
            return false;
        }
        if (ctime != null ? !ctime.equals(that.ctime) : that.ctime != null) {
            return false;
        }
        if (mtime != null ? !mtime.equals(that.mtime) : that.mtime != null) {
            return false;
        }
        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) {
            return false;
        }
        if (str2 != null ? !str2.equals(that.str2) : that.str2 != null) {
            return false;
        }
        if (str3 != null ? !str3.equals(that.str3) : that.str3 != null) {
            return false;
        }
        return (str4 != null ? str4.equals(that.str4) : that.str4 == null) && (str5 != null ? str5.equals(that.str5) : that.str5 == null);
    }

    @Override
    public int hashCode() {
        int result = archivesId != null ? archivesId.hashCode() : 0;
        result = 31 * result + (sortNum != null ? sortNum.hashCode() : 0);
        result = 31 * result + (sortName != null ? sortName.hashCode() : 0);
        result = 31 * result + (parentId != null ? parentId.hashCode() : 0);
        result = 31 * result + (lowerWidth != null ? lowerWidth.hashCode() : 0);
        result = 31 * result + (isroot != null ? isroot.hashCode() : 0);
        result = 31 * result + (fondsId != null ? fondsId.hashCode() : 0);
        result = 31 * result + (ctime != null ? ctime.hashCode() : 0);
        result = 31 * result + (mtime != null ? mtime.hashCode() : 0);
        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
        result = 31 * result + (str2 != null ? str2.hashCode() : 0);
        result = 31 * result + (str3 != null ? str3.hashCode() : 0);
        result = 31 * result + (str4 != null ? str4.hashCode() : 0);
        result = 31 * result + (str5 != null ? str5.hashCode() : 0);
        return result;
    }
}